package com.zhentao.subscription.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.subscription.domain.entity.SubscriptionTask;
import com.zhentao.subscription.domain.dto.TaskCreateDTO;

public interface TaskService extends IService<SubscriptionTask> {
    Long createOrUpdateTask(TaskCreateDTO dto);
    Page<SubscriptionTask> pageTasks(int pageNo, int pageSize, String keyword);
    void deleteTask(Long id);
    void triggerDispatch(Long id);
}

